#include <bits/stdc++.h>
using namespace std;
int letter[128];
int main() {
  string s;
  cin >> s;

  for (char fu : s) {
    letter[fu]++;
  }
  for (char fu = 'A'; fu <= 'Z'; fu++) {
    if (letter[fu] == 0)
      continue;
    cout << fu << ":" << letter[fu] << endl;
  }
  return 0;
}